package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.OwnershipBean;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * <p>
 * 产权方，供签订合同使用
 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2019-08-13
 */
public interface OwnershipMapper extends RootMapper<OwnershipBean> {

  @Override
  OwnershipBean getById(Integer id );

  OwnershipBean getByName(String name);

  int getOwnershipPageCount();

  List<OwnershipBean> getOwnershipPageList(@Param("pageNum")Integer pageNum, @Param("pageSize") Integer pageSize);

  int createOwnership (OwnershipBean subcompanyBean);

  int modifyOwnership(OwnershipBean subcompanyBean);


  List<OwnershipBean> selectOwnershipsByIds(List<Integer> ids);

}
